class Animal {
  constructor(public name: string) {}
}

class Dog extends Animal {
  bark() {
    return 'Woof!';
  }
}

type DogInstance = InstanceType<typeof Dog>;
const myDog = new Dog('Buddy');

function A(parama: DogInstance) {
  console.log(parama);
}

A(myDog);
